body {
    background: url("images/bg2.png") no-repeat center;
    background-position-y: 53px;
    background-color: #f4f4f4;
    height: 1500px;
}

header {
    position: relative;
    margin: auto 0;
    width: 100%;
    height: 53px;
    box-shadow: 0px 7px 12px rgba(0, 0, 0, 0.08);
}

header a,
.select {
    position: absolute;
    top: 10px;
}

header a {
    left: 63px;
}

.heart {
    width: 1040px;
    height: 259px;
    position: relative;
    margin: auto;
    text-align: center;
}

.search {
    margin-top: 10px;
    border-radius: 13.5px;
    border: 1px solid;
    height: 28px;
    width: 254px;
    display: inline-block;
}

.search>input {
    border: 0;
    height: 100%;
    line-height: 28px;
    border-right: transparent;
    margin-left: 17px;
    width: 207px;
    background-color: transparent;
    font-size: 17px;
}

.search>button {
    border: 0;
    background-color: transparent;
    margin-right: 12px;
}

.select {
    width: 83px;
    height: 135px;
    right: 36px;
    color: #636045;
}

.select>button,
.select>ul>li {
    width: 100%;
    height: 27px;
    text-align: center;
    background-color: #dcd79d;
    line-height: 27px;
    list-style: none;
}

.select>ul {
    display: none;
}

.select select option {
    border: #95937d 1px solid;
    border-radius: 13.5px;
}

section {
    width: 100%;
    height: 194px;
    position: relative;
}

section>div {
    width: 157px;
    height: 42px;
    background-color: #e3dfb4;
    color: #7b7b69;
    line-height: 42px;
    font-size: 17.49px;
    text-align: center;
    margin: 90px auto 0;
    position: absolute;
    left: 50%;
    margin-left: -78px;
}

.wrap {
    width: 1040px;
    height: 1054px;
    background-color: #fff;
    margin: auto;
}

.mainpage {
    width: 914px;
    height: 808px;
    margin: 84px auto 80px;
    margin: 0 auto 80px;
    padding-top: 80px;
}

.info {
    height: 55px;
    width: 108px;
    margin: auto;
    border-bottom: 1px solid #e0e0e0;
}

.info>b {
    width: 32px;
    margin: auto;
    margin-bottom: 10px;
    display: block;
}

.star {
    width: 115px;
    height: 28px;
    margin: auto;
    margin-top: 21px;
}

.star>img {
    margin: 0 5px;
}


/* 改写成nth-child(n)/nth-of-type */


/* 结构伪类选择器 */

.book:nth-child(4n) {
    margin-right: 0px;
}

.book {
    margin-right: 38px;
}

.star,
.info {
    display: none;
}

.book {
    height: 375px;
    width: 200px;
    float: left;
    transition: all .2s;
}


/* 属性选择器 */

div[class="book"]:hover .info,
div[class="book"]:hover .star {
    display: block;
}

div[class="book"]:hover {
    transform: scale(1.08);
    cursor: pointer;
}


/* .book:hover .star,
.book:hover .info,
.lastbook:hover .star,
.lastbook:hover .info {} */

.mainpage b {
    font-weight: 600;
}

.book:nth-child(n+5) {
    margin-top: 54px;
}

footer {
    margin: auto;
    height: 54px;
    text-align: center;
}

footer a {
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    line-height: 16px;
    height: 16px;
    width: 16px;
    color: #292929;
    text-align: center;
    margin: 0 10px;
}

footer>div>a[class="current"] {
    background-color: #292929;
    color: white;
    border: 1px;
    border-radius: 50%;
}

footer span {
    width: 40.11px;
    display: block;
    margin: auto;
}